package com.spyx.order;


import com.atyx.spyx.model.order.OrderInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("service-order")
public interface OrderClient {
    //根据orderNo,查询orderInfo的所有数据
    @GetMapping("/api/order/inner/getOrderInfo/{orderNo}")
    public OrderInfo getOrderInfoByOrderNo(@PathVariable("orderNo")String orderNo);

    @RequestMapping("api/order/inner/updateOrderStatus/{orderNo}")
    public void updateOrderStatus(@PathVariable("orderNo")String orderNo);
}
